package com.hqyj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.javaSpringBoot.modules.account.entity.Role;
import com.hqyj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;

/**
 * @author ：Cwd
 * @Description：RoleService
 * @date ：2021/8/26 11:31
 */
public interface RoleService {

    Result<Role> insertRole(Role role);

    Result<Role> updateRole(Role role);

    Result<Object> deleteRoelById(int id);

    Role getRoleById(int id);

    List<Role> getRolesByUserId(int userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);
}
